package com.rent.house.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.rent.house.pojo.entity.Collection;
import com.rent.house.pojo.entity.HouseResource;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


@Mapper
public interface CollectionDao extends BaseMapper<Collection> {
    /**
     * 查询我收藏的房源
     * @param page 分页对象
     * @param userId 用户ID
     * @return 房源分页结果
     */
    IPage<HouseResource> selectMyCollectionHouses(Page<HouseResource> page, @Param("userId") Long userId);
}

